Use your imagination. Since this appears
first in every script executed by httpd, you could use it for things like
a "require" statement in perl, or for controlling things like debugging modes,
etc., on a global basis for all scripts. Or you could use it to output a "standard"
document header of some sort. Note that this would apply to all
scripts executed by your server.
ShellInitCmd command
where command
is the initial command
issued to your shell.
Only one ShellInitCmd directive is allowed in the configuration file.
ShellInitCmd @ECHO OFF
, as needed by most DOS shells
to prevent command echo from appearing in the output.
ShellInitCmd #might be used as a no-op if you were exec-ing perl, and
ShellInitCmd OPEN ENVIRON$("OUTPUT_FILE") FOR OUTPUT AS #1might be used with a BASIC interpreter that couldn't handle command line output redirection to open the output file so that you wouldn't have to do that inside all of your scripts.
Return to Wizard Scripting Overview